package com.sf.sgs.sessionevaluate.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.sf.sgs.sessionevaluate.dao.ITestDao;
import com.sf.sgs.sessionevaluate.domain.Test;
import com.sf.sgs.sessionevaluate.service.ITestService;

@Component
@Transactional
public class TestServiceImpl implements ITestService {

	@Autowired
	private ITestDao testDao;

	@Override
	public Test getById(Long id) {
		Test test = testDao.findOne(id);
		Test findByValue = testDao.findByValue("123");
		List<Object[]> testNativeSql = testDao.testNativeSql();
		return test;
	}

}
